#!/usr/bin/env python
# encoding: utf-8
"""
@author:zwb
@file: dev.py
@contact: zwb15083976291@163.com
@time: 2021/10/09
"""
from config.common import *

DEBUG = True

DATABASES = {
    'default': {
        "ENGINE": "django.db.backends.mysql",
        "NAME": "blog_django",
        "USER": "root",
        "PASSWORD": "root",
        "HOST": "localhost",
        "PORT": "3306",
        'OPTIONS': {'charset': 'utf8mb4'},
    }
}

CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://127.0.0.1:6379/12",  # 安装redis的主机的 IP 和 端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 100,
                "encoding": 'utf-8'
            },
            # "PASSWORD": "foobared" # redis密码
        }
    }
}

ALI_ACCESS_KEY_ID = ""  # 阿里云 对象存储 key
ALI_ACCESS_KEY_SECRET = ""  # 阿里云 对象存储 key_secret
ALI_ENDPOINT = "http://oss-cn-hangzhou.aliyuncs.com"  # url路径
ALI_BUCKET_NAME = ""  # 块名称
ALI_BUCKET_IMAGE_DIR = "images/"
ALI_BUCKET_MUSIC_DIR = "musics/"